#ifndef TCENGINE_H
#define TCENGINE_H

#include <QObject>
#include <QDebug>
#include <QFile>
#include <QProcess>
#include "json/json.h"
#include "constantvalues.h"

using namespace Json;

class TcEngine : public QObject
{
	Q_OBJECT

	public:
		TcEngine();
		//virtual int init(Value *settings)=0;
		virtual void clear()=0;
		virtual void debug()=0;
		//Returns classid if success, else -1
		virtual int addRule(Value rule)=0;
		virtual int delRule(Value rule)=0;
		virtual QString getRuleStats(Value rule,int classID)=0;
	protected:
		ConstantValues *constantValues;
		QProcess *execTc;
		QProcess *execTcStats;
	private:
};

#endif
